<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<!-- <script src="publish-subscribe-model.js"></script> -->
	<!-- <script src="some_every.js"></script> -->
	<!-- <script src="js_use_demo.js"></script> -->
	<!-- <script src="set_map.js"></script> -->
	<!-- <script src="depend_collect.js"></script> -->
	<script src="compose.js"></script>
	<script src="defineProperty.js"></script>
	<script>
	// var length = 10;
	// function fn() {
	// 	console.log(this.length)
	// }
	// var obj = {
	// 	length: 5,
	// 	method: function (fn2) {
	// 		console.log('this.length', this.length)
	// 		fn2() // this指向window
	// 		arguments[0]() // this指向arguments
	// 	}
	// }
	// obj.method(fn, 1)
	/*function qweqwe(...arg) {
		console.log(...arg)
	}
	qweqwe(1,2,3,4,5)*/

		/*function qwer(num) {
			return (create) => (...args) => {
				console.log(create+num)
				console.log(args)
			}
		}

		qwer(1)(2)(1,2,3,4)*/

		/*function bindActionCreator(actionCreator, dispatch) {
		  return (...args) => dispatch(actionCreator(...args));
		}
		function actionCreators(args) {
			console.log('actionCreators', args)
			return 22
		}
		function dispatch(args) {
			console.log('dispatch', args)
		}
		bindActionCreator(actionCreators, dispatch)([1,2,3,4])*/

		function bindActionCreator(a,b) {
			return function demo(...args) {
				console.log(...args)
			}
		}
		bindActionCreator('a', 'b')(1,2,3,4)
	</script>
</body>
</html>